cmake_minimum_required(VERSION 3.4.1)
find_library(log-lib log)

SET(CMAKE_CXX_FLAGS "-Wno-error=format-security -Wno-error=pointer-sign")
aux_source_directory(. DIR_LIB_SRCS)

set(distribution_DIR ${CMAKE_SOURCE_DIR}/)
add_library(sound SHARED ${DIR_LIB_SRCS})

add_library(fmod SHARED IMPORTED)

set_target_properties(fmod PROPERTIES IMPORTED_LOCATION ${distribution_DIR}/${ANDROID_ABI}/libfmod.so)

add_library(fmodL SHARED IMPORTED)

set_target_properties(fmodL PROPERTIES IMPORTED_LOCATION ${distribution_DIR}/${ANDROID_ABI}/libfmodL.so)

include_directories(.)

target_link_libraries(sound fmod fmodL ${log-lib})
